class Util:
    def tree(self, data, id):
        children = []
        for item in data:
            if item['pid'] == id:
                children.append(item)

        return children 